package com.nine.pattern.factory.factory_method;

/**
 * @author nine
 * @version 1.0
 * @description TODO
 * @date 2024-07-01 22:28
 */
public class TestClient {
	public static void main(String[] args) {

		CoffeeStore coffeeStore = new CoffeeStore();
		// coffeeStore.setFactory(new LatteCoffeeFactory());
		coffeeStore.setFactory(new AmericanCoffeeFactory());

		Coffee coffee = coffeeStore.orderCoffee();
		System.out.println(coffee.getName());

	}
}
